<template>
  <NavBar></NavBar>
  <router-view v-slot="{ Component }">
    <keep-alive exclude="blogContentView">
      <component :is="Component" />
    </keep-alive>
  </router-view>
  <FooterCom></FooterCom>
  <van-back-top />
</template>
<script setup>
import NavBar from "@/components/HomeView/NavBar.vue";
import FooterCom from "./components/FooterCom.vue";
import { getmainmesage } from "@/api/request";
import { storeToRefs } from "pinia";
import { useStore } from "@/store/index";
const store = useStore()
let { mainmesage } = storeToRefs(store);
getmainmesage().then(({ data }) => {
  mainmesage.value = data.data[0]
})

</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  background-color: #f7f7fb;
  height: 100%;
}

:root {
  --motifColor: #4f9cfb;
  --boxshadow: 1px 1px 8px 1px #ddd;
}

// nav {
//   padding: 30px;

//   a {
//     font-weight: bold;
//     color: #2c3e50;

//     &.router-link-exact-active {
//       color: #42b983;
//     }
//   }
// }
</style>
